const tokenKey = 'geek_token'

//1.设置
export const setToken = (value) => localStorage.setItem(tokenKey, value)

//2.获取
export const getToken = () => localStorage.getItem(tokenKey)

//3.移除
export const removeToken = () => localStorage.removeItem(tokenKey)

//4.判断是否存在
export const hasToken = () => !!localStorage.getItem(tokenKey)
